export default{
    namespaced: true,
    state: {
        DetailList:[],
        goods_list:[],
        goods_info:[],
    },
    // 修改数据
    mutations: {
        setDetail(state,value){
            state.DetailList = value;
        },
        setgoods(state,value){
            state.goods_list = value;
        },
        setInfo(state,value){
            state.goods_info = value;
        },
    },
    // 提交修改的行为 
    actions: {
        setDetailAsync(content,value){
            content.commit('setDetail',value)
        },
        setgoodsAsync(content,value){
            content.commit('setgoods',value)
        },
        setInfoAsync(content,value){
            content.commit('setInfo',value)
        },
    }
}